<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start();
class Report extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->library('session');
		$this->load->helper('url');
		$this->load->library('upload');
		$this->load->library('pagination');
		$this->load->helper(array('form', 'url'));
		@session_start();
	}
	function get_item_report () {
		if($this->session->userdata('userid') == null && $this->session->userdata('username') == null){
			redirect("login/index");
		}else{
			$this->load->model("order_model");
			$data['listitem']=  $this->order_model->get_order_item();
			$this->load->view('get_item_report.php',$data);
		}
	}
	function item_report () {
		$this->load->view('index');
	}
	function item_report_no_menu() {
		$this->load->view('index');
	}
	function update_order_item_status($order_item_id) {
		$this->load->model('order_model');
		$this->order_model->update_item_status($order_item_id);
		redirect("report/item_report");
	}
}